Some trivial changes for the tool scripts:
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Wed, 19 Oct 2005 12:34:44 +0000 (13:34 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Wed, 19 Oct 2005 12:34:44 +0000 (13:34 +0100)
 - make xen-hotplug-common.sh (un)set locales.
 - use xen-hotplug-common.sh in vif-bridge.

From Gerd Knorr <kraxel@suse.de>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/examples/vif-bridge
tools/examples/xen-hotplug-common.sh

index 0f692d689f146a05c191b55898cb77792e0a6c1b..0174d8111615c8a2b0d44aad87c1dfe1b0af1727 100755 (executable)
 # rules for its ip addresses (if any).
 #============================================================================
 
-# Exit if anything goes wrong
-set -e 
-export PATH=/sbin:/bin:/usr/bin:/usr/sbin:$PATH
-
-echo "*vif-bridge $*" >&2
+dir=$(dirname "$0")
+. "$dir/xen-hotplug-common.sh"
 
 # Operation name.
 OP=$1
index aa0f7fabc84fed3b3a22a3665fcfd81b79d37c0f..10c7d4c87b37260efb4ee46b3bed00ceb229b9cb 100644 (file)
@@ -1,6 +1,8 @@
 set -e
 
-export PATH=/sbin:/bin:/usr/bin:/usr/sbin:$PATH
+export PATH="/sbin:/bin:/usr/bin:/usr/sbin:$PATH"
+export LANG="POSIX"
+unset $(set | grep ^LC_ | cut -d= -f1)
 
 log() {
   local level="$1"